<!DOCTYPE>
<html style="width: 100%;maigin:0 auto;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{if $item['type']=='0'}出售{elseif $item['type']=='1'}求购{elseif $item['type']==2}出售{elseif $item['type']==3}求购{/if}{$item['title']} - 本地时尚生活互动平台</title>
<meta name="keywords" content="本地时尚生活互动平台二手房" />
<meta name="description" content="{$item['title']}{if $item['type']=='0'}出售{elseif $item['type']=='1'}求购{elseif $item['type']==2}出售{elseif $item['type']==3}求购 {/if}" />
<link href="{AMOUSE_HOUSE_RES}css/bootstrap.css?v=20150314" rel="stylesheet">
<link href="{AMOUSE_HOUSE_RES}css/main.css?v=20150314" rel="stylesheet">
<style type="text/css">
img {
    width: 100%;
}
.container{
    background:#f5f5f6;
}
body{
    background:#f5f5f6;
}
</style>
</head>
<body style="width:100%;margin: 0 auto;">
<div class="container" style="width:100%;margin: 0 auto;">
<style>
    #mess_info {
        font-size: 14px;
        color: #666666;
        margin-top: 4px;
    }
    #attch_list {
        font-size: 14px;
    }
    #attch_list, #more_list {
        background-color: #f7f7f7;
    }
    #attch_list, #more_list, #list {
        margin: 8px 0 15px 0;
    }
    #attch_list, #test_result, #more_list, #list {
        border: 1px solid #d9d9d9;
        border-radius: 3px;
    }
    .attch_item {
        padding: 8px;
    }
    .attch_item, .list_item {
        border-bottom: 1px solid #d9d9d9;
    }
    .button2 {
        font-size: 16px;
        padding: 8px 0;
        border: none;
        color: white;
        background-color: rgb(5, 5, 5);
        border-radius: 0px;
    }
    button {
        width: 100%;
        text-align: center;
        border-radius: 3px;
    }
    .hidden{
        display: none;
    }
    .button {
        margin:0;
    }
    #weixinshare{
        width: 100%;
        opacity: 0.9;
        background-color: #1b1b1b;
        height: 1000%;
        position: absolute;
        top: 0;
        left: 0;
    }
    #weixinshare img{
        right: 0;
        top: 0;
        position: fixed;
        background-color: #1b1b1b;
    }
    .header {
        width: 100%;
        height: 40px;
        background: rgb(5, 5, 5);
        background-size: contain;
        color: #ffffff;
        position: fixed;
        top: 0;
        left: 0;
    }
    .header a img {
        max-width: 100%;
        height: 26px;
        width: 26px;
        vertical-align: middle;
    }
    .header ul{
        list-style: none;
    }
    .header ul li{
        list-style: none;
    }
    .selfinfo{
        color: #000000;
        list-style: none;
        margin-left: 4%;
        float: left;
        width: 96%;
    }
    .selfinfo li{
        width: 45%;
        float: left;
        margin-right: 5%;
        background: white;
        margin-top: 8px;
    }
    .tuijianul{
    }
    .tuijianul li{
        list-style: none;
        padding: 0 10px 0 4px;
        margin: 0 8px 0 8px;
        background: url('{AMOUSE_HOUSE_RES}images/arrow3.png') no-repeat right 50%;
        -webkit-background-size: 5.5px 10px;
        background-size: 5.5px 10px;
        border-bottom: 1px solid rgb(211, 204, 204);
        line-height: 36px;
        height: 26px;
    }
    .tuijianul li a{
        color: #000000;
    }
    a:hover{text-decoration: none;}
</style>

<header class="header" style="">
<div style="font-size: 14px;line-height: 40px;height: 40px;text-align: center;">
    <a href="javascript:history.back();">
        <span style="padding-left: 8px;color: white;float: left;">返回</span>
    </a>
    <span style="font-size: 16px;">房产详情</span>
    <a href="{$setting['guanzhuUrl']}">
        <span style="float: right;padding-right: 4px;color: white;">{if empty($setting['copyright'])}{$_W['account']['name']} {else} {$setting['copyright']}{/if}</span>
    </a>
</div>
</header>
<h4 style="margin-top:50px;margin-bottom: 8px;padding-top:8px;font-size: 16px;color: rgb(3, 3, 3);">
    <img style="width: 40px;margin-top: -6px;" src="{AMOUSE_HOUSE_RES}images/zhiwei.png" >
    <span style="color:black;">
        {if $item['type']=='0'}[出售]{elseif $item['type']=='1'}[求购]{elseif $item['type']==2}[出售]{elseif $item['type']==3}[求购] {/if}
    </span>
    {$item['title']}
</h4>
<ul class="selfinfo"  style="background: white;margin: 0 2%;width: 94%;padding: 0 0 8px 2%;border: 1px solid rgb(223, 226, 223);">
    {if $item['type']==2||$item['type']==3}
    <li>单价或总价：<span>{$item['price']} 万元</span></li>
    <p>{else}单价或总价：<span>{$item['price']}元</span>
      {/if}
</p>
    <p>&nbsp; </p>
    <li>面积：<span>{$item['area']}平米</span></li>
    <li>楼层：<span>{$item['floor']}</span></li>
    <li>户型：<span>{$item['house_type']}</span></li>
    {if $item['brokerage']}
    <li>佣金：<span>{$item['brokerage']}</span></li>
    {/if}
    <li>发布：<span>{php echo date('Y-m-d',$item['createtime'])}</span></li>
</ul>

<ul class="selfinfo"  style="background: white;margin: 0 2%;width: 94%;padding: 0 0 8px 2%;border: 1px solid rgb(223, 226, 223);">
    {if $setting&&$setting['isshow']==0}
    <li>电话：<a href="tel:{$setting['jjrmobile']}"><span>{$setting[jjrmobile]}</span></a> </li>
    <li>经纪人：<span>{$setting['broker']}</span> </li>
    {else}
        <li>电话：<a href="tel:{$item['phone']}"><span>{$item[phone]}</span></a></li>
        <li>联系人：<span>{$item['contacts']}</span> </li>
    {/if}
</ul>

<div  class="well" style="padding: 0px;margin: 10px 0 20px 0px;float: left;background:#f5f5f6;box-shadow: none;border: none;width: 100%;">
    <h4 style="padding-bottom: 8px;color: rgb(5, 5, 5);">
        <img style="width: 40px;margin-top: -6px;" src="{AMOUSE_HOUSE_RES}images/selfintro.png" >
        {if $item['type']=='0'||$item['type']=='1'}新房{else}房产{/if}描述   公众号：【经纪人分佣联盟】  开启房产新模式！
    </h4>
    <div style=" padding: 8px 16px; background: white; margin: 0 2%;border: 1px solid rgb(223, 226, 223);"> {$item[introduction]}<br/>
        {if !empty($item['thumb1'])}
        <img  src="{php echo strpos($item['thumb1'], 'http://') === FALSE ? ($_W['attachurl']. $item['thumb1']): $item['thumb1']}" style="height: 100px;width: 100px;"/>
        {/if}
        &nbsp;&nbsp;{if !empty($item['thumb2'])}<img id="example2" src="{php echo strpos($item['thumb2'], 'http://') === FALSE ? ($_W['attachurl']. $item['thumb2']): $item['thumb2']}" style="height: 100px;width: 100px;"/> {/if}

        &nbsp;&nbsp;{if !empty($item['thumb3'])}<img src="{php echo strpos($item['thumb3'], 'http://') === FALSE ? ($_W['attachurl']. $item['thumb3']) : $item['thumb3']}" style="height: 100px;width: 100px;"/> {/if}

        &nbsp;&nbsp;{if !empty($item['thumb4'])}<img src="{php echo strpos($item['thumb4'], 'http://') === FALSE ? ($_W['attachurl']. $item['thumb4']) : $item['thumb4']}" style="height: 100px;width: 100px;"/>{/if}

    </div>
</div>
<div id="mess_share" style="margin: auto;width: 100%;float: left;">
    <div id="share_1"  style="width: 25%;float:left;margin: 0 5% 0 15%;">
        {if $item['type']=='0'||$item['type']=='1'}
        <button class="button2 button"  onclick="location.href='{php echo $this->createMobileUrl('new',array('a'=>'rent','openid'=>$item['openid']),true)}'">发布房产</button>
        {else}
        <button class="button2 button" onclick="location.href='{php echo $this->createMobileUrl('new',array('a'=>'house','openid'=>$item['openid']),true)}'">发布房产</button>
        {/if}
    </div>
    <div id="share_2"  style="width: 35%;float: left;margin: 0 15% 0 5%;">
        <button   class="button2 button" title="{if empty($setting['copyright'])}{$_W['account']['name']} {else} {$setting['copyright']}{/if}"  onclick="location.href='{$setting[guanzhuUrl]}'">
        {if empty($setting['copyright'])}{$_W['account']['name']}{else} {$setting['copyright']}{/if}
        </button>
    </div>
    <div class="clear"></div>
</div>

<div  class="well" style="padding: 0px;margin: 10px 0 20px 0px;float: left;background:#f5f5f6;box-shadow: none;border: none;width: 100%;margin-bottom: 50px;">
    <h4 style="padding-bottom: 0px;color: rgb(5, 5, 5);">
        <img style="width: 40px;margin-top: -6px;" src="{AMOUSE_HOUSE_RES}images/tuijian.png" >{if $item['type']=='0'||$item['type']=='1'}认证{else}认证{/if}房源
    </h4>
    <ul class="tuijianul" style=" background: white; margin: 0 2%; width: 94%; padding: 0 0 8px 2%;border: 1px solid rgb(223, 226, 223); ">
        {loop $recommeds $recommed}
        <li>
            <a href="{php echo $this->createmobileUrl('detail',array('a'=>'rent','type'=>$recommed[type],'id'=>$recommed[id],'openid'=>$recommed[openid]),true)}">
                <div style="width: 100%;">{$recommed['title']}</div>
            </a>
        </li>
        {/loop}
        </ul>
</div>

<div class="hidden" id="weixinshare">
    <img src="{AMOUSE_HOUSE_RES}images/xitieshare.png"/>
</div>
<script src="{AMOUSE_HOUSE_RES}js/jquery.min.js?v=20150313" language="javascript"></script>

<script type="text/javascript">
    $(".button").bind("click", function(){
        $(".button").each(function(){
            $(this).removeClass("clicked");
        });
        $(this).toggleClass("clicked");
        if($("#"+$(this).attr("showdiv")).hasClass("hidden")){
            $("#"+$(this).attr("showdiv")).show(200);
        }else{
            $("#"+$(this).attr("showdiv")).hide(200);
        }
        $("#"+$(this).attr("showdiv")).toggleClass("hidden");
    });
    $("#weixinshare").bind("click", function(){
        $(this).addClass("hidden");
        $(this).hide(200);
    });
</script>
</div>
<div class="footerintro" style="float:left;width:100%;text-align: center;vertical-align: middle;background: rgb(5, 5, 5);padding:0px 0 0px 0;font-size: 12px;margin-bottom: 0px;height: 30px;line-height: 30px;border-bottom: 4px solid darkmagenta;bottom: 0;position: fixed;">
    <a style="color: white;text-decoration: none;line-height: 30px;" href="{$setting['guanzhuUrl']}">→
        {if empty($setting['copyright'])}{$_W['account']['name']} {else} {$setting['copyright']}{/if} ←
    </a>
</div>

 <div style="display:none">
     {php echo htmlspecialchars_decode($setting['cnzz'])}
</div>
</body>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
{php $signPackage=$_W['account']['jssdkconfig'];}
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: '<?php echo $signPackage["timestamp"];?>',
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo']
    });

    wx.ready(function () {
        var shareData = {
            imgUrl:"{php echo $_W['siteroot'];}addons/amouse_house/icon.jpg",
            link :  "{$url}",
            desc : "{$item['title']}{$item['floor']}",
            title : "{$item['title']}{$item['floor']}{$item['introduction']}",
            trigger: function (res) {},
            complete: function (res) {},
            success: function (res) {
            },
            cancel: function (res) {
            },
            fail: function (res) {
            }
        };
        wx.onMenuShareAppMessage(shareData);
        wx.onMenuShareQQ(shareData);
        wx.onMenuShareWeibo(shareData);
        wx.onMenuShareTimeline(shareData);
    });
</script>
</html>
